import request from '@/utils/request'

let api = {};

api.list = (data)=>{
    return request({
        url:"/api/member/msg/listMsg",
        method:"post",
        data
    });
}

api.add = (data)=>{
    return request({
        url:"/api/member/msg/addMsg",
        method:"post",
        data
    });
}

api.delete = (data)=>{
    return request({
        url:"/api/member/msg/softdeleteMsg",
        method:"post",
        data
    });
}

api.edit = (data)=>{
    return request({
        url:"/api/member/msg/editMsg",
        method:"post",
        data
    });
}

api.listOwnMsg = (param)=>{
    return request({
        url:"/api/member/msg/listOwnMsg",
        method:"post",
        data:param
    });
}


export default api;